package rentadomus

class Contract {
    float monthlyRentFee
    Date rentPayDate
    String toString(){
        "${person}"
    }
    static hasMany=[rules:BehaviourRule]
    static belongsTo = [person:Person,place:Place]

    static mapping = {
        version false
        monthlyRentFee column: 'Monthly_Rent_Fee'
        rentPayDate column: 'Rent_Pay_Date'  
    }
    static constraints = {
        monthlyRentFee blank: false, min: 1000.0F
        rentPayDate blank: false
    }
}